(() => {
  let isFullScreen = false;
  window.addEventListener("pointerup", async () => {
    if (isFullScreen) {
      await document.exitFullscreen();
      isFullScreen = false;
    } else {
      const fullEle = document.querySelector(".container");
      await fullEle.requestFullscreen();
      isFullScreen = true;
    }
  });
})();
